package view.full;

import java.awt.Color;
import java.awt.Font;

import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JTabbedPane;

import view.full.event.EventTab;
import event.model.Dsek;

public class FullViewer {
	
	public static final Color BACKGROUNDCOLOR = Color.WHITE;
	public static final Font TITLE_FONT = new Font("verdana",0,20);
	private JFrame frame;
	private JTabbedPane tabs;
	private Dsek model;
	
	
	
	public FullViewer() {
		frame = new JFrame("Narwhal");
		frame.setExtendedState(JFrame.MAXIMIZED_BOTH);
		
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		
		tabs = new JTabbedPane();
		frame.add(tabs);
	
		model = new Dsek();
		EventTab eventTab = new EventTab(model);
		tabs.addTab("Event",new ImageIcon("img/c_black.png"), eventTab);
		
		
		frame.setVisible(true);
	}
	
	public void setEnable(boolean enable) {
		frame.setEnabled(enable);
	}
	
	
	
	public static void main(String[] args) {
		new FullViewer();
	}
	
}
